package com.cc.pms.startup;

import com.cc.pms.service.ITeamService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component
public class Startup implements CommandLineRunner {


    @Resource
    private ITeamService iTeamService;

    @Override
    public void run(String... args) throws Exception {
        iTeamService.init();
        log.info("启动队伍初始化...");
    }
}
